/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package converter;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;

/**
 *
 * @author QUY-THI
 */
public class Prolem implements Converter {

    public Object getAsObject(FacesContext fc, UIComponent uic, String string) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String getAsString(FacesContext fc, UIComponent uic, Object o) {
        boolean status = (Boolean) o;
        if (status) {
            return "Yes";
        }
        return "No";
    }
}
